// components/menuItem/menuItem.js
import indexImgSufix from "../../conmon/imageCommon/imageCommon";
Component({
  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {
    iconimage:[
      {name:"购物车",url:indexImgSufix.myPageImage+'/gouwuche.png',path:"../../secondary_page/Shopping/Shopping"},
      {name:"待付款",url:indexImgSufix.myPageImage+'/daifukuan.png',path:"../../secondary_page/payment/payment"},
      {name:"待评价",url:indexImgSufix.myPageImage+'/daipindia.png',path:"../../secondary_page/evaluate/evaluate"},
      {name:"我的订单",url:indexImgSufix.myPageImage+'/dinddan.png',path:"../../secondary_page/order/order"},
      {name:"第三方订单",url:indexImgSufix.myPageImage+'/sanfang.png',path:"../../secondary_page/Third/Third"}
    ],
  },
  onLoad:function(){

  },
  
  methods: {
    // 让弹出层功能改变
    bindDataChange(){
        this.triggerEvent('changeShow',this.data.show)//这里通过triggerEvent将要传的值date和触发的传值事件都发送给父级
    },
    toPage(e){
      const path = e.currentTarget.dataset.index;
      if(path != ''){
        wx.navigateTo({
          url: path
        })
      }
    },
  }
})
